package com.yiwu.common.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.util.List;

/**
 * 
 * @TableName Categories
 */
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value ="Categories")
@Data
public class Categories extends Model<Categories> {
    /**
     * 分类的主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 分类名称
     */
    private String cname;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @Override
    public List<Categories> selectAll() {
        return super.selectAll();
    }
}